package com.atguigu.gulimall.gulimallsearch.vo;

import com.atguigu.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
@Data
public class SearchResult {
    private List<SkuEsModel> product;//查询到的信息
    private Integer pageNum;//当前页码
    private Long total;//总记录数
    private Integer totalPages;//总页码
    private List<Integer> pageNavs;//分页的导航栏
    private List<BrandVo> brandVos; //查询的结果涉及到的品牌
    private List<CatalogVo> catalogVos;//查询的结果涉及到的分类
    private List<AttrVo> AttrVos; //查询的结果涉及到的所有属性
    //	================以上是返回给页面的所有信息================
    private List<navVo> navs = new ArrayList<>();//面包屑导航
    private List<Long> attrIds = new ArrayList<>();//属性id
    @Data
    public static class navVo{
        private String navName;
        private String navValue;
        private String link;
    }
    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }
    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }
    @Data
    public static class AttrVo{
        private Long AttrId;
        private String attrName;
        private List<String> attrValue;
    }
}

